<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>项目经理年度绩效</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">

</head>
<body>
<h1>项目经理年度绩效</h1>
<a href="adminHome.html">返回管理员主页</a>
<c:if test="${empty performanceList}">
    <div class="no-data">暂无绩效数据</div>
</c:if>

<c:if test="${not empty performanceList}">
    <table>
        <thead>
        <tr>
            <th>项目经理姓名</th>
            <th>年份</th>
            <th>年度消费总额（元）</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="performance" items="${performanceList}">
            <tr>
                <td>${performance.managerName}</td>
                <td>${performance.year}</td>
                <td>${performance.totalAmount}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</c:if>

<div style="margin-top: 20px;">

</div>
</body>
</html>